package com.ruoyi.wm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wm.mapper.WmApparatusMapper;
import com.ruoyi.wm.domain.WmApparatus;
import com.ruoyi.wm.service.IWmApparatusService;
import com.ruoyi.common.core.text.Convert;

/**
 * 耗材列Service业务层处理
 * 
 * @author hpf
 * @date 2021-12-03
 */
@Service
public class WmApparatusServiceImpl implements IWmApparatusService 
{
    @Autowired
    private WmApparatusMapper wmApparatusMapper;

    /**
     * 查询耗材列
     * 
     * @param id 耗材列ID
     * @return 耗材列
     */
    @Override
    public WmApparatus selectWmApparatusById(Long id)
    {
        return wmApparatusMapper.selectWmApparatusById(id);
    }

    /**
     * 查询耗材列列表
     * 
     * @param wmApparatus 耗材列
     * @return 耗材列
     */
    @Override
    public List<WmApparatus> selectWmApparatusList(WmApparatus wmApparatus)
    {
        return wmApparatusMapper.selectWmApparatusList(wmApparatus);
    }

    /**
     * 新增耗材列
     * 
     * @param wmApparatus 耗材列
     * @return 结果
     */
    @Override
    public int insertWmApparatus(WmApparatus wmApparatus)
    {
        return wmApparatusMapper.insertWmApparatus(wmApparatus);
    }

    /**
     * 修改耗材列
     * 
     * @param wmApparatus 耗材列
     * @return 结果
     */
    @Override
    public int updateWmApparatus(WmApparatus wmApparatus)
    {
        return wmApparatusMapper.updateWmApparatus(wmApparatus);
    }

    /**
     * 删除耗材列对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWmApparatusByIds(String ids)
    {
        return wmApparatusMapper.deleteWmApparatusByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除耗材列信息
     * 
     * @param id 耗材列ID
     * @return 结果
     */
    @Override
    public int deleteWmApparatusById(Long id)
    {
        return wmApparatusMapper.deleteWmApparatusById(id);
    }
}
